package com.controll;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * xufan
 * 2019/1/8
 */
@RestController
public class TestController {

    @CrossOrigin(origins = "http://localhost:8080/testCors")
    @PostMapping("/testCors")
    public void testCors( ) throws  Exception{
        System.out.println("000000");

    }

    @CrossOrigin(origins = "http://localhost:8080/testCors222")
    @PostMapping("/testCors222")
    public void testCors222( ) throws  Exception{
        System.out.println("=====testCors222");

    }


    @PostMapping("/testCors333")
    public void testCors3333( ) throws  Exception{
        System.out.println("=====testCors333");

    }
}
